package com.youan.serve.dao.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.youan.pangu.base.bean.validate.InsertValidateGroup;
import com.youan.pangu.base.bean.validate.UpdateValidateGroup;
import com.youan.pangu.plus.validate.NotRepeat;
import com.youan.serve.dao.idao.SyscodeDetailMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 
 * </p>
 *
 * @author auto_code
 * @since 2020-02-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_syscode_detail")
public class SyscodeDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @NotBlank(groups = UpdateValidateGroup.class)
    private String detailId;
    @NotBlank(groups = InsertValidateGroup.class)
    private String sysCodeId;
    @NotBlank
    @NotRepeat(columnName = "detail_key", mapperClass = SyscodeDetailMapper.class, entityClass = SyscodeDetail.class, message = "存在重复的字典详情名")
    private String detailKey;
    @NotBlank
    private String detailValue;


}
